package com.deyuanyun.pic.ctrl.util;

/**
 * 处理绝对距离辅助类
 *
 * @author scalpel.王敏
 * @version [v1.0] 创建时间（2016/9/20）
 * @see // 引用的类
 * Method List:
 * 1.----------------
 * 2.----------------
 * History:
 */
public class HandlerUtil implements HandlerService{
    StringBuilder result=new StringBuilder("[");

    public void callback(Object obj,String args[])
    {
        result.append("{'id':'").append(args[0]).append("','x':").append(args[1]).append(",'y':").append(args[2]).append("}").append(",");
    }

    public String getExecuteResult()
    {
        if(result.length() > 1 )
        {
            result.deleteCharAt(result.length()-1);
        }
        result.append("]");
        return result.toString();
    }
}
